//
//  YHSharedSingletion.m
//  LyhToolsTest
//
//  Created by 李彦宏 on 2020/4/7.
//  Copyright © 2020 LYH.com. All rights reserved.
//

#import "YHSharedSingletion.h"

static YHSharedSingletion *_sharedSingLeton = nil;

@implementation YHSharedSingletion

+(instancetype)sharedSingLeton
{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
     _sharedSingLeton =  [[super allocWithZone:NULL] init];
    });
    return _sharedSingLeton;;
}

+ (instancetype)allocWithZone:(struct _NSZone *)zone
{
    return [YHSharedSingletion sharedSingLeton];
}





@end
